#!/usr/local/bin/omf


# expects $1 to be INT >=0
function factorial
{
    if $1 == 0
	return 1;
    return $1 * $0($1 - 1);
}

